import http from "@/utils/request"

// 查询库存信息详情(分页)
export function getProcessCInByPage (pageNum, pageSize, processingId) {
  return http({
    url: `/processing/inProcessingInfo/list/${pageNum}/${pageSize}?processingId=${processingId}`,
    method: 'get'
  });
}

// 根据id查询库存详情
export function getProcessCInById (id) {
  return http({
    url: `/processing/inProcessingInfo/get/${id}`,
    method: 'get'
  });
}

// 单条删除库存信息
export function deleteStorage (id) {
  return http({
    url: `/processing/inProcessingInfo/delete/${id}`,
    method: 'delete'
  });
}

// 新增库存信息
export function addEvent (addForm) {
  return http({
    url: `/processing/inProcessingInfo/save`,
    method: 'post',
    data: addForm,
  });
}

// 修改库存信息
export function editEvent (editForm) {
  return http({
    url: `/processing/inProcessingInfo/update/${id}`,
    method: 'put',
    data: editForm,
  });
}

// 批量删除
export function batchDelete (ids) {
  return http({
    url: `/processing/inProcessingInfo/deletion/batch`,
    method: 'delete',
    data: ids,
  });
}
